Skip to content

Bump semver and tiny-async-pool #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jun 23, 2023

Removes semver. It's no longer used after updating ancestor dependency tiny-async-pool. These dependencies need to be updated together.

Removes semver

Updates tiny-async-pool from 1.1.0 to 2.1.0

Release notes

Sourced from tiny-async-pool's releases.

v2.1.0

⭐️ Enhancement

  • Improve the promise consumption logic #44

🐛 Fixes

  • Consume all promises, even if they are fullfilled within the same tick #42

v2.0.1

🐛 Fixes

⚙️ Chore

  • Fix eslint script #37

v2.0.0

🌟 New API (breaking change)

Support for await...of usage by returning an async iterator.

const timeout = ms => new Promise(resolve => setTimeout(() => resolve(ms), ms));
for await (const ms of asyncPool(2, [1000, 5000, 3000, 2000], timeout)) {
console.log(ms);
}
// Call iterator timeout(1000)
// Call iterator timeout(5000)
// Concurrency limit of 2 reached, wait for the quicker one to complete...
// 1000 finishes
// for await...of outputs "1000"
// Call iterator timeout(3000)
// Concurrency limit of 2 reached, wait for the quicker one to complete...
// 3000 finishes
// for await...of outputs "3000"
// Call iterator timeout(2000)
// Itaration is complete, wait until running ones complete...
// 5000 finishes
// for await...of outputs "5000"
// 2000 finishes
// for await...of outputs "2000"

The main difference: 1.x API waits until all of the promises completes, then all results are returned. The new API (thanks to async iteration) let each result be returned as soon as it completes.

The environment baseline of the new 2.x is ES9 (Node v10). The environment baseline of 1.x is ES6.

v1.3.0

... (truncated)

Commits
  • 770c457 2.1.0
  • ad1b717 Include .npmrc with package-lock=false
  • 60afcc1 Consume each Promise.race promise at a time
  • e554881 Test: Assert asyncPool works when iteratorFn doesn't return a promise
  • 0adcc37 Fix some unit tests
  • 59c032e Bye package-lock.json
  • bf0d6ad README: Use asyncPoolAll in 1.x examples
  • 40b3920 README: JS highlight
  • 90da22f README: Allow for 1.x style await
  • f37c387 2.0.1
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Removes [semver](https://github.com/npm/node-semver). It's no longer used after updating ancestor dependency [tiny-async-pool](https://github.com/rxaviers/async-pool). These dependencies need to be updated together.


Removes `semver`

Updates `tiny-async-pool` from 1.1.0 to 2.1.0
- [Release notes](https://github.com/rxaviers/async-pool/releases)
- [Commits](rxaviers/async-pool@v1.1.0...v2.1.0)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
- dependency-name: tiny-async-pool
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants